package com.wocai.jrt.orgadmin.project.service.impl;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import com.wocai.jrt.orgadmin.project.dao.ProjectAttachmentDao;
import com.wocai.jrt.orgadmin.project.model.ProjectAttachment;
import com.wocai.jrt.orgadmin.project.model.ProjectAttachmentBean;
import com.wocai.jrt.orgadmin.project.service.spi.ProjectAttachmentService;
import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;

/**
 * 项目附件相关的service业务实现。
 * @author yinlei
 * @date 2016-3-17 17:23:18
 */
@Named
public class ProjectAttachmentServiceImpl extends MyBatisServiceImpl<ProjectAttachment, ProjectAttachmentBean, String> implements ProjectAttachmentService {
	// 添加了方法后，记得改为private
	protected ProjectAttachmentDao projectAttachmentDao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<ProjectAttachment, ProjectAttachmentBean, String> projectAttachmentDao) {
		this.baseDao = projectAttachmentDao;
		this.projectAttachmentDao = (ProjectAttachmentDao) projectAttachmentDao;
	}

	@Override
	public List<ProjectAttachment> getReportList(ProjectAttachment pa) {
		return projectAttachmentDao.getReportList(pa);
	}
}
